/*
 * Title:        CloudScheduler Toolkit
 * Description:  a Toolkit for Modeling and Simulation of Job Scheduling and Resource Provisioning in Cloud System
 * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
 * Author:       Fuhui Wu
 *
 * Copyright (c) 2013-2014, The National University of Defense Technology, China
 */

package org.nudt.jCloud.infrastructure;

public class BwProvisioner {
	private int bw;
	private int availableBw;

	public BwProvisioner(int bw) {
		setBw(bw);
		setAvailableBw(bw);
	}
	
	public void reset(){
		setAvailableBw(bw);
	}

	/**
	 * @return the availableBw
	 */
	public int getAvailableBw() {
		return availableBw;
	}

	/**
	 * @param availableBw the availableBw to set
	 */
	public void setAvailableBw(int availableBw) {
		this.availableBw = availableBw;
	}

	/**
	 * @return the bw
	 */
	public int getBw() {
		return bw;
	}

	/**
	 * @param bw the bw to set
	 */
	public void setBw(int bw) {
		this.bw = bw;
	}

}
